package club.xyes.zkh.ecommerce.dao.mapper;

import club.xyes.zkh.ecommerce.commons.entity.UserCollectShop;
import club.xyes.zkh.ecommerce.dao.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Create by 郭文梁 2019/4/18 0018 14:00
 * UserCollectShopMapper
 *
 * @author 郭文梁
 * @data 2019/4/18 0018
 */
@Repository
public interface UserCollectShopMapper extends BaseMapper<UserCollectShop> {
    /**
     * 根据用户ID查找用户的收藏记录
     *
     * @param userId 用户ID
     * @return 收藏记录
     */
    List<UserCollectShop> selectByUserInfoFetchAll(@Param("userId") Integer userId);
}
